<!--
	This file is part of ELCube.
	ELCube is free software: you can redistribute it and/or modify
	it under the terms of the GNU Affero General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	ELCube is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Affero General Public License for more details.
	You should have received a copy of the GNU Affero General Public License
	along with ELCube.  If not, see <https://www.gnu.org/licenses/>.
-->
<template>
    <nk-def-card>
        <nk-form :edit="editMode" :col="1">
            <nk-form-item title="激活条件">
                <nk-sp-el-view :el="def.activeSpEL"></nk-sp-el-view>
                <nk-sp-el-editor slot="edit" v-model="def.activeSpEL"></nk-sp-el-editor>
            </nk-form-item>
            <nk-form-item title="可分解金额">
                <nk-sp-el-view :el="def.availableAmountSpEL"></nk-sp-el-view>
                <nk-sp-el-editor slot="edit" v-model="def.availableAmountSpEL"></nk-sp-el-editor>
            </nk-form-item>
            <nk-form-item title="记账日期">
                <nk-sp-el-view :el="def.accountDateSpEL"></nk-sp-el-view>
                <nk-sp-el-editor slot="edit" v-model="def.accountDateSpEL"></nk-sp-el-editor>
            </nk-form-item>
            <nk-form-item title="偿还总额回填">
                <nk-sp-el-view :el="def.repaymentSpEL"></nk-sp-el-view>
                <nk-sp-el-editor slot="edit" size="small" v-model="def.repaymentSpEL"></nk-sp-el-editor>
            </nk-form-item>
            <nk-form-item title="偿还规则组">
                <nk-sp-el-view :el="def.repaymentRuleGroup"></nk-sp-el-view>
                <nk-sp-el-template-editor slot="edit" v-model="def.repaymentRuleGroup"></nk-sp-el-template-editor>
            </nk-form-item>
            <nk-form-item title="目标单据ID">
                <nk-sp-el-view :el="def.targetDocIdSpEL"></nk-sp-el-view>
                <nk-sp-el-editor slot="edit" v-model="def.targetDocIdSpEL"></nk-sp-el-editor>
            </nk-form-item>
        </nk-form>
    </nk-def-card>
</template>

<script>
    import MixinDef from "MixinDef";
    export default {
        mixins:[new MixinDef({})],
    }
</script>

<style scoped>

</style>